<?php $store = $this->store ?>

<div style="position:absolute;top:4px;right:12px">
    <?php echo $this->render('stores/_dropdown.phtml') ?>
    <a href="<?php echo $this->urlThisPage() ?>">Alle Stores anzeigen</a>
</div>

<?php $types = array('Shop', 'Shop in Shop', 'Shop in der EU') ?>
<?php if(isset($types[$store->type])): ?>
    <h3><?php echo $types[$store->type] ?></h3>
<?php endif; ?>

<?php if(!empty($store->name)): ?>
   <h2><?php echo $store->name ?></h2>
<?php endif; ?>

<div id="map" style="float:right; width: 500px; height: 300px"></div>

<?php if(!empty($store->note)): ?>
   <p><b><?php echo $store->note ?></b></p>
<?php endif; ?>

<p>
<?php if(!empty($store->addition)): ?>
    <?php echo $store->addition ?><br />
<?php endif; ?>
<?php if(!empty($store->address)): ?>
   <?php echo $store->address ?><br />
<?php endif; ?>
<?php if(!empty($store->country)): ?>
    <?php if($store->country != 'CH'): ?>
        <?php echo $store->country . ' - ' ?>
    <?php endif; ?>
<?php endif; ?>
<?php if(!empty($store->zip) || !empty($store->city)): ?>
    <?php echo $store->zip . ' ' . $store->city ?><br />
<?php endif; ?>
</p>

<p>
<?php if(!empty($store->phone)): ?>
    Tel: <?php echo $store->phone ?><br />
<?php endif; ?>
<?php if(!empty($store->fax)): ?>
    Fax: <?php echo $store->fax ?><br />
<?php endif; ?>
<?php if(!empty($store->email) && WSB_Div::validEmail($store->email)): ?>
    E-Mail: <a href="mailto:<?php echo $store->email ?>"><?php echo $store->email ?></a><br />
<?php endif; ?>
<?php if(!empty($store->website)): ?>
    <?php $website = str_replace('http://', '', $store->website) ?>
    Website: <a target="_blank" href="http://<?php echo $website ?>"><?php echo $website ?></a><br />
<?php endif; ?>
</p>

<?php if(!empty($store->openingHours)): ?>
    <p>&Ouml;ffnungszeiten:<br />
    <?php echo nl2br($store->openingHours) ?></p>
<?php endif; ?>

<?php if(!empty($store->infotext)): ?>
    <p style="width:370px"><?php echo nl2br($store->infotext) ?></p>
<?php endif; ?>

<?php if(empty($store->fullAssortment)): ?>
    <p>Dieser Store hat nicht das gesamte Sortiment</p>
<?php endif; ?>

<div style="clear:both"></div>